package com.dcms.power.service;

import com.dcms.power.bean.Menu;

import java.util.List;
import java.util.Map;

/**
 * Created by 武佳伟丶 on 2018/4/8 0008.
 */
public interface IMenuService {
    int deleteByPrimaryKey(Integer menuId);

    int insertSelective(Menu record);

    Menu selectByPrimaryKey(Integer menuId);

    int updateByPrimaryKeySelective(Menu record);

    List<Menu> selectAll(String param, Menu record);

    /**
     * @author: 武佳伟丶 
     * @description: 根据用户id或角色id进行查询
     * @date: 17:25 2018/4/9 0009
     * @param: [userId, roleId]
     * @return: java.util.List<com.dcms.power.bean.Menu>
     */
    List<Menu> selectMenuByItemId(Integer userId, Integer roleId);

    int deleteByPid(Integer pid);
}
